package com.example.feidaolumanager.api

import com.example.feidaolumanager.pojo.ResponseDTO
import com.example.feidaolumanager.pojo.Task
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.PUT
import retrofit2.http.Query

interface TaskService {


    @GET("/appoder/getappoderByid")
    suspend fun getTasks(
        @Query("id") account: String,
        @Query("qx") level: Int,
        @Query("ac") ss_id: Int
    ): ResponseDTO<List<Task>>

    @PUT("/appoder/updateAppOder")
    suspend fun updateTask(@Body task: Task): ResponseDTO<String>
}